package cn.lxb.web.starter.template.autoconfigure.properties;

import cn.lxb.web.starter.template.constant.PageDirection;
import cn.lxb.web.starter.template.constant.PageNumber;
import cn.lxb.web.starter.template.autoconfigure.entity.PageCustom;

import java.math.BigDecimal;

/**
 * PDF导出接口服务
 *
 * @author zhoukui
 * @author 54lxb
 * @since 2019-11-20
 */
public class EasyPoiPrintPdfProperties {

    /**
     * 纸张大小，默认A4
     */
    private PageNumber pageNumber = PageNumber.A4;

    /**
     * 纸张方向，默认纵向
     */
    private PageDirection pageDirection = PageDirection.PORTRAIT;

    /**
     * 自定义设置
     */
    private PageCustom pageCustom;

    /**
     * 字体大小
     */
    private BigDecimal fontSize;

    public PageNumber getPageNumber() {
        return pageNumber;
    }

    public void setPageNumber(PageNumber pageNumber) {
        this.pageNumber = pageNumber;
    }

    public PageDirection getPageDirection() {
        return pageDirection;
    }

    public void setPageDirection(PageDirection pageDirection) {
        this.pageDirection = pageDirection;
    }

    public PageCustom getPageCustom() {
        return pageCustom;
    }

    public void setPageCustom(PageCustom pageCustom) {
        this.pageCustom = pageCustom;
    }

    public BigDecimal getFontSize() {
        return fontSize;
    }

    public void setFontSize(BigDecimal fontSize) {
        this.fontSize = fontSize;
    }

    public static EasyPoiPrintPdfProperties defaultProperty() {
        EasyPoiPrintPdfProperties ret = new EasyPoiPrintPdfProperties();
        ret.setFontSize(new BigDecimal(12));
        return ret;
    }
}
